<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <TITLE>新乡市纪委监委财务系统</TITLE>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="__FINANCE__/layui/css/layui.css" rel='stylesheet' type='text/css'/>
    <script src="__FINANCE__/layui/layui.js" charset="utf-8"></script>
    <script language="javascript" src="__FINANCE__/Scripts/jquery.jqprint-0.3.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<script language="javascript">
    function aa(){
        $("#ddd").jqprint({
            debug: false, //如果是true则可以显示iframe查看效果（iframe默认高和宽都很小，可以再源码中调大），默认是false
            importCSS: true, //true表示引进原来的页面的css，默认是true。（如果是true，先会找$("link[media=print]")，若没有会去找$("link")中的css文件）
            printContainer: true, //表示如果原来选择的对象必须被纳入打印（注意：设置为false可能会打破你的CSS规则）。
            operaSupport: true //表示如果插件也必须支持歌opera浏览器，在这种情况下，它提供了建立一个临时的打印选项卡。默认是true
        });
    }
</script>
<input type="button" onclick="aa()" value="打印"/>
<div class="layui-form" id="ddd">
    <fieldset class="layui-elem-field layui-field-title">
        <legend style="margin-left: 40%">新乡市市纪委监委差旅费报销单 </legend>
    </fieldset>
    <span style="width: 30%">填表人:{$data['fill_from']}</span>
    <span style="width: 40%;margin-left: 30%">出差人数：共{$data['number_people']}人</span>
    <span style="width: 30%;margin-left: 30%">日期：{$data['fill_time']}</span>
    <table class="layui-table" id="test">
        <colgroup>
            <col width="100">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th colspan="3" style="text-align:center;vertical-align:middle;">起点</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">止点</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">伙食补助</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">住宿费</th>
            <th colspan="2" style="text-align:center;vertical-align:middle;">车船费</th>
            <th colspan="2" style="text-align:center;vertical-align:middle;">卧铺补助</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">市内交通费</th>
            <th style="text-align:center;vertical-align:middle;">路桥费</th>
            <th style="text-align:center;vertical-align:middle;">其他</th>
            <th style="text-align:center;vertical-align:middle;">合计</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th width="33">月</th>
            <th width="33">日</th>
            <th width="33">地点</th>
            <th width="33">月</th>
            <th width="33">日</th>
            <th width="33">地点</th>
            <th width="33">天数</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <th width="33">天数</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <th width="33">种类</th>
            <th width="33">金额</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <th width="33">天数</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <td rowspan="2">{$data['road_bridge_money']}</td>
            <td rowspan="2">{$data['other']}</td>
            <td rowspan="2">{$data['total']}</td>
        </tr>
        <tr>
            <td>{:date('m',strtotime($data['start_time']))}</td>
            <td>{:date('d',strtotime($data['start_time']))}</td>
            <td>{$data['start_site']}</td>
            <td>{:date('m',strtotime($data['end_time']))}</td>
            <td>{:date('d',strtotime($data['end_time']))}</td>
            <td>{$data['end_site']}</td>
            <td>{$data['eat_subsidy_day']}</td>
            <td>{$data['eat_subsidy_standard']}</td>
            <td>{$data['eat_subsidy_money']}</td>
            <td>{$data['stay_day']}</td>
            <td>{$data['stay_standard']}</td>
            <td>{$data['stay_money']}</td>
            <td>{$data['traffic_kind']}</td>
            <td>{$data['traffic_money']}</td>
            <td>{$data['sleeper_standard']}</td>
            <td>{$data['sleeper_money']}</td>
            <td>{$data['city_traffic_day']}</td>
            <td>{$data['city_traffic_standard']}</td>
            <td>{$data['city_traffic_money']}</td>

        </tr>
        <tr>
            <td colspan="4" style="text-align:left;vertical-align:middle;">合计大写</td>
            <td colspan="10" style="text-align:left;vertical-align:middle;">{$data['sum_chinese']}</td>
            <td colspan="8" style="text-align:left;vertical-align:middle;">¥{$data['sum']}</td>
        </tr>
        <tr>
            <td colspan="5" style="text-align:left;vertical-align:middle;">出差人(签字)</td>
            <td colspan="12" style="text-align:left;vertical-align:middle;">{$data['business_people']}</td>
            <td colspan="2" style="text-align:left;vertical-align:middle;">室(部)负责人</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">{$data['department_head']}</td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:left;vertical-align:middle;">分管领导</td>
            <td colspan="2" style="text-align:left;vertical-align:middle;">{$data['brancher_leader']}</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">办公室主任</td>
            <td colspan="2" style="text-align:left;vertical-align:middle;">{$data['office_director']}</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;size: 12px">主管办公室副书记(壹万元及以上)</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">{$data['secretary']}</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">审批领导</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">{$data['examine_leader']}</td>
        </tr>
        </tbody>
    </table>


    <!--<table class="layui-hide" id="test" lay-filter="test"></table>-->
    <!--<script type="text/html" id="toolbarDemo">-->
    <!--<div class="layui-btn-container">-->

    <!--</div>-->
    <!--</script>-->


</div>

<!--<script>-->
<!--layui.use('table', function(){-->
<!--var table = layui.table;-->
<!--table.render({-->
<!--elem: '#test'-->
<!--,url:'/test/table/demo1.json'-->
<!--,toolbar: '#toolbarDemo' //开启头部工具栏，并为其绑定左侧模板-->
<!--,defaultToolbar: ['print']-->
<!--,title: '用户数据表',-->
<!--cols:  [[ //标题栏-->
<!--//                {field: 'username', title: '联系人', width: 80, rowspan: 2} //rowspan即纵向跨越的单元格数-->
<!--//                ,{field: 'amount', title: '金额', width: 80, rowspan: 2}-->
<!--//                ,{align: 'center', title: '地址', colspan: 3} //colspan即横跨的单元格数，这种情况下不用设置field和width-->
<!--{align: 'center', title: '新乡市市纪委监委差旅费报销单', colspan: 22},-->

<!--]]-->
<!--});-->
<!--});-->
<!--</script>-->


</body>
</html>